<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%request.setAttribute("ctx",request.getContextPath()); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Ebay Admin</title>
<link href="${ctx}/css/style.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
.style1 {
	font-size: 18px;
	font-weight: bold;
	color: #000000;
}

.style2 {
	font-size: 16px
}

.style3 {
	color: #FFFFFF
}
-->
</style>


<script type="text/javascript">
	function login(){
		var userName = document.getElementById("userName").value;
		var password = document.getElementById("password").value;
		if(userName == "" || password == ""){
			alert("尊敬的用户，请输入用户名和登陆密码!");
			return;
		}
		var form0 = document.getElementById("loginForm");
		form0.action = "${ctx}/admin/userLogin";
		form0.method = "post";
		form0.submit();
    }
    function alertMsg(){
    	var errorMsg = "${message}";
    	if(errorMsg != ""){
    		alert(errorMsg);
    	}
    }
    alertMsg();
</script>
</head>

<body scroll="no" background="${ctx}/images/login-bg.gif">
	<form action="" id="loginForm">
		<table width="1024" height="600" border="0" cellpadding="0"
			cellspacing="0" align="center">
			<tr height="30%">
				<td width="220"><font face="Verdana">&nbsp;</font></td>
				<td align="center" valign="bottom"><p class="style1 style2">
						<font face="Verdana" size="4" color="#800000">Ebay Admin</font>
					</p></td>
				<td width="220"><font face="Verdana">&nbsp;</font></td>
			</tr>
			<tr>
				<td width="220"><font face="Verdana">&nbsp;</font></td>
				<td align="center">
					<table>
						<tr>
							<td width="50" height="30" class="fontorange"
								style="color: #ff6600; font-weight: bold;"><font
								face="Verdana" color="#800000">userName:</font></td>
							<td><font face="Verdana"><input type="text"
									name="userName" id="userName" class="inputlogin" value=""></font>
							</td>
						</tr>
						<tr>
							<td height="30" class="fontorange"
								style="color: #ff6600; font-weight: bold;"><font
								face="Verdana" color="#800000">passwrod:</font></td>
							<td><input name="password" id="password" type="password"
								class="inputlogin" value=""></td>
						</tr>
						<tr>
							<td align="right">&nbsp;</td>
							<td align="right"><a href="#" onclick="login();"><img
									src="${ctx}/images/btnlogin1.gif" width="47" height="43"
									border="0"></a></td>
						</tr>
					</table>
				</td>
				<td width="220">&nbsp;</td>
			</tr>
			<tr height="30%"></tr>
		</table>
	</form>
</body>
</html>


